<%@ page import="dart.PlayerGame" %>
<% wins = []
game.playerGames.each {
	switch (it.status) {
		case PlayerGame.WON:
		case PlayerGame.TIE:
			wins << it.person;
			break;
	}
}
%>
<html>
<head>
	<title>Game Over</title>
	<meta name="layout" content="dart"/>
	<dart:css src="gamePlay/gameOver.css" />
</head>
<body>
<h1>Congatulations!</h1>
<table width="100%">
	<tr>
		<td width="60%">

			<g:each in="${wins}" var="person">
				<h2 style="${person.style()}">
					${person.displayName} <span>is a winner!</span>
				</h2>
			</g:each>
		</td>
		<td>
			<g:render template="/scoring/scoreTable"/>
		</td>
	</tr>
</table>

<tmpl:roundTable game="${game}" noCurrent="true"/>
</body>
</html>
